package com.doculibre.constellio.connector.twitter;

import java.util.ArrayList;
import java.util.Collection;
import com.google.enterprise.connector.spi.AuthenticationIdentity;
import com.google.enterprise.connector.spi.AuthorizationManager;
import com.google.enterprise.connector.spi.AuthorizationResponse;

/**
 * 
 * Twitter Authorization Manager
 * 
 * @author France Labs
 * 
 */
public class TwitterAuthorizationManager implements AuthorizationManager {
	  public Collection<AuthorizationResponse> authorizeDocids(
			    Collection<String> docIds, AuthenticationIdentity id) {
			      ArrayList<AuthorizationResponse> authorized =
			        new ArrayList<AuthorizationResponse>(docIds.size());
			      for (String docId : docIds) {
			        authorized.add(new AuthorizationResponse(true, docId));
			      }
			      return authorized;
			  }
			 } 
			